package com.hxc.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClazzQueryParam {
    private String name;
    // 配置接受前端时按照什么格式解析日期参数，默认是yy/MM/dd
    @DateTimeFormat(pattern = "yy-MM-dd")
    private LocalDate begin;
    @DateTimeFormat(pattern = "yy-MM-dd")
    private LocalDate end;
    private Integer page = 1;
    private Integer pageSize = 10;
}
